package com.bobo.base.quartz;

import com.bobo.pojo.SysJob;
import org.quartz.JobExecutionContext;
import org.springframework.stereotype.Component;

/**
 * 定时任务处理（允许并发执行）
 *
 * @author LILIBO
 * @since 2021-06-24
 */
@Component
// @DisallowConcurrentExecution // 不允许并发执行
public class QuartzJobExecution extends QuartzJob {

    @Override
    protected void doExecute(JobExecutionContext context, SysJob sysJob) throws Exception {
        QuartzJobInvokeUtil.invokeMethod(sysJob);
    }

}
